package com.parking.status.sync.netty.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * Created by Administrator on 2015/9/18.
 */
public class ResponseCommon {

    //返回码
    @JsonProperty("result")
    private String result;

    //主机时间
    @JsonFormat(pattern = "yyyyMMddHHmmss")
    private Date systime;

    //消息
    private String msg;

    public ResponseCommon() {

    }

    public ResponseCommon(String result, String msg) {
        this.result = result;
        this.msg = msg;
        this.systime = new Date();
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getSystime() {
        return systime;
    }

    public void setSystime(Date systime) {
        this.systime = systime;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
